#include <memory>
#include "TcpServer.hpp"


int main(int argc,char* argv[])
{
    EnableConsoleLogStrategy();//启动日志
    std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>((uint16_t)std::stoi(argv[1]));
    tsvr->Init();
    tsvr->Start();    
    return 0;
}